Find current path and apply this to open